<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="KEYWORDS" content="{meta_keywords}" />
        <meta name="DESCRIPTION" content="{meta_description}" />
        <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <title>{title}</title>
        <style type="text/css">
            #loading-layer{
                background:#FF8B00;color:white;font-size:75%;position:fixed;z-index:10;padding: 6px;top: 0px;right: 0px;margin:0px}
        </style>
        <script type="text/javascript">
            if(location.hash && location.hash.substr(0,2) == '#:') location = '/'+location.hash.substr(2);
            <?php if (defined('USE_LINKS_CACHE') && !in_array(CPage::$current->name, CPage::$current->params['ignore_js'])): ?>
                document.isJoin = true;
            <?php endif; ?>
        </script>
        <?php if (defined('USE_LINKS_CACHE') && !in_array(CPage::$current->name, CPage::$current->params['ignore_js'])): ?>		
            <link type="text/css" rel="stylesheet" href="{static_url}publish/<?php echo portal()->id; ?>/page/<?php echo CPage::$current->name; ?>.css?v=<?php echo JS_VERSION; ?>"/>
        <?php endif; ?>
        <link type="text/css" rel="stylesheet" href="<?php echo CPortal::$static_url . portal()->skin(); ?>/css/style.css?v=<?php echo JS_VERSION; ?>"/>
        {css_layout}
        {links}

    </head>
    <?php flush(); ?>